package com.cdp.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_platform_visits")
public class PlatformVisit {

    @TableId(value = "visit_id", type = IdType.AUTO)
    private Long visitId;

    private Long userId;
    private LocalDateTime visitTimestamp;
    private String ipAddress;
    private String deviceInfo;
    private String sessionId;
    private Integer version;

    @TableField(value = "delete_time")
    private Integer deleteTime;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}
